﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="DepartmentManage.aspx.cs" Inherits="SDLITS.Web.Basic.DepartmentManage" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel6"/>
      <f:Panel ID="Panel6" Title="部门管理" ShowBorder="false" BodyPadding="0" ShowHeader="True" Layout="Fit" runat="server" AutoScroll="true">
        <Toolbars>
            <f:Toolbar runat="server">
                <Items>
                    <f:Button runat="server" ID="btnNew" Text="新增" Icon="Add"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
        <Items>
        <f:Grid ID="Grid1" ShowBorder="false" AllowPaging="false" EnableCheckBoxSelect="true" OnRowCommand="Grid1_RowCommand"
            EnableColumnLines="true" EnableHeaderMenu="false" ShowHeader="false" Title="表格" runat="server" EnableCollapse="false" DataKeyNames="DeptID">
            <Columns>
                <f:RowNumberField EnablePagingNumber="true" Width="25px" TextAlign="Center" />
                <f:BoundField Width="150px" DataField="DeptName" HeaderText="部门名称" DataSimulateTreeLevelField="TreeLever"/>
                <f:BoundField Width="150px" DataField="UpJob" HeaderText="上级部门" />
                <f:BoundField Width="100px" DataField="UserName" HeaderText="负责人" />
                <f:BoundField Width="100px" DataField="Phone" HeaderText="联系电话"/>
                <f:BoundField Width="150px" DataField="Email" HeaderText="邮箱" />
                <f:WindowField ColumnID="myWindowField2" Width="80px" WindowID="Window1" Text="添加" HeaderText="添加"
                    DataTextFormatString="{0}" DataIFrameUrlFields="DeptID" DataIFrameUrlFormatString="DepartmentChange.aspx?did={0}"
                    DataWindowTitleField="DeptName" DataWindowTitleFormatString="添加 - {0}" Icon="BulletAdd" TextAlign="Center"/>
                <f:WindowField ColumnID="myWindowField" Width="80px" WindowID="Window1" Text="修改" HeaderText="修改"
                    DataTextFormatString="{0}" DataIFrameUrlFields="DeptID" DataIFrameUrlFormatString="DepartmentChange.aspx?id={0}"
                    DataWindowTitleField="DeptName" DataWindowTitleFormatString="修改 - {0}" Icon="BulletEdit" TextAlign="Center"/>
                <f:LinkButtonField ConfirmText="您确定要删除该条记录吗？" ConfirmTarget="Top" ColumnID="LocationId"
                    Width="80px" CommandName="Del" Text="删除" Icon="BulletDelete" HeaderText="删除" TextAlign="Center"/>
            </Columns>
        </f:Grid>
        </Items>
       </f:Panel>
       <f:Window ID="Window1" Title="编辑" Hidden="true" EnableIFrame="true" runat="server"
         IFrameUrl ="about:blank" IsModal="True" Width="415px" Height="380px">
       </f:Window>
    </form>
</body>
</html>
